<script>
    function goBack(){
    window.history.back()
    }
</script>
  <div class="container">
    <div>
      <h3>客户分配</h3>
    </div>
    <hr />
    <div class="panel panel-default">
      <div class=" panel-heading">客户分配</div >
      <form action="allot.php?action=allot_check"  method="post" >
        <table style ="margin-left:200px;">
          <tr>
              <td>
              <span><b>客户姓名</b></span>
             </td>
             <td>
                <input type="text" style ="margin:20px;" class="form-control" readonly name="cname" value="<?php echo $res['c_name']?>"/>
                <input type="hidden" style ="margin:20px;" class="form-control" readonly name="cid" value="<?php echo $res['c_id']?>"/>
             </td>
         </tr>
         <tr>
             <td>
              <span><b>负责员工</b></span>
             </td>
             <td>
                 <select style="margin-left:20px;margin-bottom:20px;" class="form-control" name="ename" required="required">
                    <?php if(isset($cArr)):?>
                    <?php foreach($cArr as $v):?>
                    <option><?php echo $v['e_id'].$v['e_name']?></option>
                    <?php endforeach;?>
                    <?php endif;?>
                  </select>
             </td>
         </tr>
         <tr>
             <td></td>
             <td style="padding-left:100px;">
                  <button class="btn btn-primary" id="submit_btn" type="submit">提交</button>
                  <button class="btn btn-info" type="reset">重置</button>
                  <a class="btn btn-default" onclick="goBack()">返回</a>
              </td>
        </tr>
      </table>
    </form>
  </div>
</div>
